import {createRouter,createWebHistory} from 'vue-router';

// 暂时采用静态路由，后期考虑看情况是否更换为动态路由
const router = createRouter({
    history: createWebHistory(),
    routes:[
        {
            path:"/",
            redirect:'/index'
        },
        {
            path:"/index",
            component:()=>import('@/views/Index.vue')
        },
        {
            path:"/storm",
            component:()=>import('@/views/Storm.vue')
        },
        {
            path:"/market",
            component:()=>import('@/views/Market.vue')
        },
        {
            path:"/content",
            component:()=>import('@/views/market/ModuleContent.vue')
        },
        {
            path:"/more",
            component:()=>import('@/views/More.vue')
        },
        {
            path:"/user",
            component:()=>import('@/views/User.vue')
        },
        // ...其他路由配置
        {
            path: '/:catchAll(.*)', // 捕获所有路径
            component: ()=>import('@/views/404.vue')
        }
    ]
})

export default router
